<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/messageRule/lookUpMessageRulesPageInfo" onsubmit="return dwzSearch(this, 'dialog');">
<div class="pageHeader">
    <div class="searchBar">
                <input type='hidden' name='lockFlag' value='${condition.lockFlag}'/>
				<ul class="searchContent" style="height:100%;">
				<li ><label>
                        <@label key='code.C,colon'>编号：
                    </@label></label>
                    <input type="text" name="fuzzyRuleCode" value="${condition.fuzzyRuleCode!''}"/></li>
                <li ><label>
                        <@label key='desc.C,colon'>描述：
                    </@label></label>
                    <input type="text" name="fuzzyRuleText" value="${condition.fuzzyRuleText!''}"/></li>
				<li ><label>
						<@label key='andonType.C,colon'>ANDON类型：
					</@label></label>
					<select name="andonTypeCode">
					       <option value="" ><@label key="all.C">所有</@label></option>
                            <#list andonTypeList  as andonType>
                            <option value="${andonType.andonTypeCode}"<#if  (condition)?? && andonType.andonTypeCode == condition.andonTypeCode> selected="selected"</#if>>${andonType.typeText}</option>
                            </#list>
                        </select></li>
				<li class="query">
	                <div class="buttonActive">
	                    <div class="buttonContent">
	                        <button type="submit" name="btnQuery"><@label key="query.B">查询</@label></button>
	                    </div>
	                </div>
	            	</li>
				</ul>
    </div>
</div>
</form>

<div class="pageContent">
    <table targetType="dialog" class="table border" width="100%" layoutH="130">
        <thead>
            <tr>
                <th width="80" orderField="ruleCode" <#if (page.orderField?? && page.orderField =="ruleCode")>class="${page.orderDirection!''}"</#if>><@label key='code.C'>消息规则编号</@label></th>
                <th width="80" orderField="ruleText" <#if (page.orderField?? && page.orderField =="ruleText")>class="${page.orderDirection!''}"</#if>><@label key='desc.C'>描述</@label></th>
                <th width="80" orderField="andonTypeCode" <#if (page.orderField?? && page.orderField =="andonTypeCode")>class="${page.orderDirection!''}"</#if>><@label key='andonType.C'>ANDON类型</@label></th>
                <th width="80" orderField="lockFlag" <#if (page.orderField?? && page.orderField =="lockFlag")>class="${page.orderDirection!''}"</#if>><@label key='lockFlag.C'>锁定标志</@label></th>
                <th width="100"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as messageRule>
            <tr target="messageRule_id" rel="${messageRule.id!''}">
               	<td>${messageRule.ruleCode!}</td>
                <td>${messageRule.ruleText!}</td>
                <td>${messageRule.andonTypeText!}</td>
                <td><#if messageRule.lockFlag == 1><@label key='yes.C'>是</@label><#else><@label key='no.C'>否</@label></#if></td>
                <td><a class="btnSelect bringBack" value="{ruleCode:'${messageRule.ruleCode!''}',ruleText:'${messageRule.ruleText!''}'}" >选择</a></td>
            </tr>
        </#list>
        <#else>
        <tr target="messageRule_id">
                <td colspan="6" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="messageRule_id">
                <td colspan="6" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
    <#include "/common/dialogPanelBar.html">
</div>
<script type="text/javascript">
(function($){
	var page = DWZ.context();
})(jQuery);
</script>
